<?php

$q=$_GET["q"];
echo $q;

$con = mysql_connect('localhost', 'yinch838', 'yinch838-09');
if (!$con)
{
	die('Could not connect: ' . mysql_error());
}

mysql_select_db("yinch838", $con);

$sql="DELETE FROM product WHERE name = '".$q."'";
mysql_query($sql) or die("ERROR :(");
?> 